package com.platform.common.functions;

import java.util.function.Consumer;

public interface PresentOrElseHandler<T extends Object> {

    /**
     *
     *
     * @param action 值不为空时执行消费操作
     * @param emptyAction 值为空时执行其他操作
     */
    void presentOrElseHandle(Consumer<? super T> action, Runnable emptyAction);
}
